package com.ruoyi.jt808.server;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(value = Integer.MAX_VALUE) // 加载顺序，值越小，优先级越高
@Slf4j
@Component
public class TCPNettyRun implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        TCPNettyServer server = new TCPNettyServer(9025);
        server.startServer();
    }
}
